package com_djm_2025_06_05.demo6;

public class Dog extends Animal implements IRunable{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name+"啃骨头");
    }

    @Override
    public void run() {
        System.out.println(this.name + "用四条腿跑");
    }
}
